package com.sayice.design.AbstractFactory;


public class Client {
    public static void main(String[] args) {
        try {
            String type="OracleFactory";
            String className=type;
            AbstractFactory factory=new OracleFactory();
            Connection connection= (Connection) factory.createConnection();
            Statement statement=factory.createStatement();

            connection.connect();
            statement.state();

        }catch (Exception e){
            e.printStackTrace();
        }
    }
}

